import request from '@/router/axios';
// 分页
export const getPage = (current, size, params) => {
  return request({
    url: '/api/mes-admin/sequence/generation/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};
// 打印测试
export const printTest = (row) => {
  return request({
    url: '/api/mes-admin/api/print/test',
    method: 'post',
    data: row
  });
};

export const productSnPrint = (data) => {
  return request({
    url: '/api/mes-admin/label-product/sequence/print',
    method: 'post',
    data: data
  });
};

export const productSnRePrint = (data) => {
  return request({
    url: '/api/mes-admin/label-product/sequence/rePrint',
    method: 'post',
    data: data
  });
};

export const malfunctionSnPrint = (data) => {
  return request({
    url: '/api/mes-admin/label-product/malfunction/sequence/print',
    method: 'post',
    data: data
  });
};

export const malfunctionSnRePrint = (data) => {
  return request({
    url: '/api/mes-admin/label-product/malfunction/sequence/rePrint',
    method: 'post',
    data: data
  });
};
